Skip to content

Error handling

Introduction

The Medrunner API uses HTTP status codes to indicate success or failure of an API call. Status codes in the 2xx range means success, 4xx range means there was an error in the provided information, and those in the 5xx range indicate server side errors.

Default error response

When an error occur the API will return a status code in the 4xx or 5xx range, and it is up to you to understand where the error comes from following the RFC 9110 spec. You can use this article from MDN to understand the HTTP status codes.

Released under the GPL-3.0 License.