Closed bisgardo closed 2 years ago
Make it easier for clients to understand when the response is an error. Currently they can only do it by parsing the JSON payload.
Respond with non-OK HTTP status codes on error. The status code also includes a hint on what kind of error it is.
Resolves #14.
Purpose
Make it easier for clients to understand when the response is an error. Currently they can only do it by parsing the JSON payload.
Changes
Respond with non-OK HTTP status codes on error. The status code also includes a hint on what kind of error it is.
Resolves #14.