Error

When an error occurs during a service call, error details will be produced under the metadata section along with an associated detailed message. In many cases, this information may be used to identify improperly initiated requests, such as a required parameter not being included in the request payload

Response body

Below is example of error response raised by validation errors.

{
  "metadata" : {
    "status" : "BAD_REQUEST",
    "path" : "/api/v1/edc/studies",
    "timestamp" : "2018-10-18 05:46:29",
    "error" : {
      "code" : "1000",
      "description" : "Field raised validation errors",
      "field" : {
        "attribute" : "page",
        "value" : "XX"
      }
    }
  }
}

Error response fields

Path Type Description

code

String

Error code

description

String

Error description message

field.attribute

String

Origination request attribute which caused the error

field.value

String

The value of request attribute passed in the request

Error codes

Error code Description

1000

Validation error. Request contain invalid value.

9000

Unknown error. Please contact Mednet support for assistance.

9001

Unauthorized error. Insufficient permission to retrieve data.