Response Codes and Errors
All APIs may respond with one of the following response codes:
The request was successful and the response body contains the representation requested.
204 No Response:
The request was successful, but there is no information to send back (usually returned by successful non-GET operations).
A common redirect response; you can GET the representation at the URI in the Location response header.
400 Bad Request:
The data given in the request failed validation. Inspect the response body for details (see Error data structure for details).
The supplied credentials, if any, are not sufficient to access the resource.
404 Not Found:
Resource is not available under requested URL.
500 Server Error:
This usually means there was a problem on Duda's end. Double check to make sure your data sent is correct then reach out to Duda for help.
The applicative validations and errors are returned with 400 (Bad Request) HTTP response code accompanied with the following Error structure in JSON:
|error_code||String||Code of the error, i.e. ResourceNotExist InvalidInput InternalError.|
|message||String||Detailed error message|