What error codes are being used?
Issue #65
resolved
Apologies for asking this as an issue, but I couldn't find a better way.
I'm writing a wrapper for MAL, and I need to know what error codes the HTTP codes are.
So far, I'm assuming you use 401 for Unauthorized, 403 for Forbidden. Is this right? The Not Found one is 404 as expected, like mentioned in the documentation.
I'd also like to know what code you use for Network Error. I was thinking it was either 520, 598, or 599.
I need to know what the codes are so my wrapper can respond to errors appropriately. Thanks!
Comments (4)
-
-
reporter I found most of the error codes but Forbidden. I will assume it uses 403
-
If Everything is right the response codes should be following https://en.m.wikipedia.org/wiki/List_of_HTTP_status_codes
We are apps using network error 500.
-
- changed status to resolved
- Log in to comment
If you want to know exact error codes, you can send request to each endpoint using Fiddler and investigate response headers. Or you can try to read source code.