/
REST Error Handling


Target release

7.0

Epic


Document status

DRAFT

Document owner


Designer


Tech lead


Technical writers


QA


Page Properties

Objective

Provide a standardized way for errors to be returned from REST requests made to OpenMethods service endpoints.

Requirements

Requirement

User Story

Importance

Jira Issue

Notes

Follow REST best practices for errors


HIGH



Ability to differentiate between system level errors and application errors

 

 

 

 

Support for compound errors





Error content should be context survivable

The error content should contain enough information about the context in which it happened so it can be logged and understood later




User interaction and design

Example Error Content


1{ 2 "requestURL": "<full url that produced the error>", 3 "requestMethod": "<GET | POST | PUT | PATCH | DELETE | OPTIONS>", 4 "requestBody": "<any post/put/patch content of the request>", //optional 5 "httpStatus": "<http response code>", 6 "errorCode": "<error code>", //optional 7 "errorMessage": "<human readable error message>", 8 "errorRawMessage": "<original third-party error message>", //optional 9 "stackTrace": "<encoded text blob containing language specific stack trace information>", //optional 10 "causedBy": //optional 11 { 12 <full content of error> 13 } 14}

Open Questions

Question

Answer

Date Answered




Out of Scope