Closed mortenoh closed 11 years ago
But aren't status codes still strings? i.e. "200", not 200. You don't ever multiply or add them, for example.
I guess that's true. Don't feel strongly either way on it, just using the "CODE" should be fine.
Morten
On Wed, Mar 13, 2013 at 6:34 PM, Chris Ford notifications@github.comwrote:
But aren't status codes still strings? i.e. "200", not 200. You don't ever multiply or add them, for example.
— Reply to this email directly or view it on GitHubhttps://github.com/facilityregistry/fred-api/issues/50#issuecomment-14836374 .
Close as obsolete.
Allow code and message to be custom. Fix to make it valid json
I still think calling it a "error message" is wrong. The code should be what defines whether it is an informational service (as in when we are deleting) or an error.
Yup, the text just says "the message" now.
Hi
It seems that in the spec message.code is required to be a string, since both the status code + status message is used.
Can/should this be changed to only status code? it makes sense, yes? If you want to say, "bla bla not found" you can do so in the message part.