Errors Overview

Sever's response to an error that occurs is quite simple.

Common Error Response

Any status code
Response body
{
  "status": "fail",
  "message": "any"
}

Uncaught Error Response

500 Internal Server Error
Response body
{
  "status": "error",
  "message": "terjadi kegagalan pada server kami",
  "error": {
    "name": "Error",
    "message": "connect ECONNREFUSED 127.0.0.1:5432"
  }
}
Please report if you receive this error response

Others

Default Error Response From Hapi.js
Response body
{
  "statusCode": 401,
  "error": "Unauthorized",
  "message": "Missing authentication"
}