Errors

To ensure consistency, error responses generated by any of the LTIaaS endpoints obey the following pattern:

{
  status: ERROR_STATUS,
  error: ERROR_MESSAGE,
  details: ERROR_DETAILS
}

Example:

{
  status: 401,
  error: "Unauthorized",
  details: {
    message: "Missing parameter \"token\"."
    bodyReceived: { // Body received from the LMS in case that's where the error originated
      param: "value"
    }
  }
}