Skip to content

4.0.0

Compare
Choose a tag to compare
@jmendiara jmendiara released this 19 May 08:31
· 12 commits to master since this release
2824e9c

Feature
Relax HTTP 5XX error mask conditions
The payload returns a message and error that is dependant of the statusCode, not a unified unique generic one

BREAKING CHANGES:
Before

class ServiceUnavailable extends Therror.HTTP(503) {}
{
  error: 'InternalServerError',
  message: 'An internal server error occurred'
}

After

class ServiceUnavailable extends Therror.HTTP(503) {}
{
  error: 'ServiceUnavailable',
  message: 'Service Unavailable'
}