Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 389 Bytes

errors.md

File metadata and controls

16 lines (12 loc) · 389 Bytes

Errors

Styx uses consistant error format accross its API. Errors are returned whith an HTTP error code from 4xx to 5xx.

Example

  {
    "code": "log_exist",
    "message": "api: log already exists"
  }

code field contains an error code which can be used to react programmatically to a type of error.
message field contains an human readable error message.