Errors

WemX follows standard HTTP response code to indicate success or failures.

HTTP Codes:

  • Codes in range 2xx indicate a successful response

  • Codes in range 4xx indicate invalid, incorrect or incomplete parameters, permission errors or authentication errors.

  • Codes in range 5xx indicate server side errors

WemX always responds with a success parameter to determine if the response was a success. If the response is false, an additional errors parameter is passed with an array of errors giving a more detailed error as to what went wrong.

{
    "success": false,
    "errors": [
        "Username is already taken"
    ]
}

Last updated