Closed nelson6e65 closed 9 months ago
The JSON:API specification states:
"[...] the HTTP status code applicable to this problem, expressed as a string value"
But in the JSON response, it is a number instead of string.
number
string
{ "errors": [ { "status": 501 } ] }
And if I use string, I get this warning:
Warning express deprecated res.status("501"): use res.status(501) instead
😅
The JSON:API specification states:
But in the JSON response, it is a
number
instead ofstring
.And if I use
string
, I get this warning:😅