Railmail uses conventional HTTP status codes to indicate the outcome of a request. Codes in the 2xx range mean success, 4xx means the request failed given the information provided, and 5xx means something went wrong on Railmail’s side.
All errors use RFC 7807 application/problem+json. The body always includes type, title and status, and may include more:
Common status codes
Always read the title and detail fields; they explain what went wrong far better than the status code alone. For 400 responses, the errors map pinpoints exactly which fields to fix.