Concordium / concordium-rosetta

A server implementing the Rosetta API for the Concordium blockchain.
Mozilla Public License 2.0
5 stars 1 forks source link

Respond with non-OK HTTP status codes on error #11

Closed bisgardo closed 2 years ago

bisgardo commented 2 years ago

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.