You've probably heard not to hardcode numbers when writing code. Use constants instead. Let this be your guide when building RESTful APIs.
This is still a work in progress, and I intend to add code for multiple languages (the ones I know). If you want support for your language, feel free to add it.
-
Copy the Javascript Code in
http-response-codes.js
and paste in your browser console -
Run the following code in the same console to generate for C#
Object.keys(STATUS_CODES).map(key => `public const int ${key} = ${STATUS_CODES[key]};`).join('\n')
-
Be sure to edit the code to adjust for your language :)
203 is
NON-AUTHORITATIVE INFORMATION
.https://httpstatuses.com/203