HTTP request success codes are three-digit values indicating that an action was executed without significant issues. Response codes typically fall within the 200-299 range. Although not a complete absence of problems, these codes imply normal completion of requested tasks.

👍

HTTP Status Code of Success Response must be 200. In some cases it can be 201. The range of codes are from 200-299 .i.e., HTTP 2xx. where XX indicates numbers.

Parameters

Parameter nameData typeDescription
dataJSON ObjectResponse for API methods
errorJSON ObjectError message when an error or exception occur

Schema

// HTTP STATUS CODE: 200

{
   "data": {
     "KEY1": "VALUE1",
     "KEY2": "VALUE2",
     "...": "..."
   },
   "error": null
}

Success Codes Reference

HTTP Status Codes and their Messages are given below in the table below👇.

CodeMessage
200OK
201Created
202Accepted
203Non-Authoritative Information
204No Content
205Reset Content
206Partial Content
207Multi-Status (WebDAV)
208Already Reported (WebDAV)
226IM Used (HTTP Delta encoding)

For more information regarding HTTP status codes please refer at MDN Web Docs 🔗