Troubleshooting
API Error Codes
this document lists the http status codes and error responses returned by the momentscience native ads api use this reference to troubleshoot failed requests and understand how to handle different error scenarios http status codes the api uses standard http status codes to indicate the result of a request code meaning description 200 ok success the request was successful and the response body contains the result 400 bad request invalid input the request was malformed or contains invalid parameters 401 unauthorized authentication required your api key is missing or invalid 403 forbidden access denied your api key does not have permission to access the resource 404 not found resource not found the requested endpoint or resource does not exist 422 unprocessable entity validation failed the request was well formed but contained invalid data error response format when a request fails, the api returns a json response with information about the error example 1 invalid request parameters invalid request parameters { "statuscode" 400, "message" "invalid request parameters" } example 2 no results found no results found { "data" {}, "status" "fail", "message" "no results found" } if you're encountering persistent issues or errors not listed above, contact the momentscience support team at help\@momentscience com