Ghost/core/server/errors
Hannah Wolfe 254e0f0597 Improve API error handling
close #2757, refs #5286

- moves error formatting from api/index into errors lib
- moves error handling from api/index into its own middleware
- adds extra middleware for method not allowed which captures all unsupported routes
2015-06-15 10:08:30 +01:00
..
bad-request-error.js Rename error.type to error.errorType 2015-04-22 22:29:45 +02:00
data-import-error.js Rename error.type to error.errorType 2015-04-22 22:29:45 +02:00
email-error.js Rename error.type to error.errorType 2015-04-22 22:29:45 +02:00
index.js Improve API error handling 2015-06-15 10:08:30 +01:00
internal-server-error.js Rename error.type to error.errorType 2015-04-22 22:29:45 +02:00
method-not-allowed-error.js Improve API error handling 2015-06-15 10:08:30 +01:00
no-permission-error.js Rename error.type to error.errorType 2015-04-22 22:29:45 +02:00
not-found-error.js Rename error.type to error.errorType 2015-04-22 22:29:45 +02:00
request-too-large-error.js Rename error.type to error.errorType 2015-04-22 22:29:45 +02:00
unauthorized-error.js Rename error.type to error.errorType 2015-04-22 22:29:45 +02:00
unsupported-media-type-error.js Rename error.type to error.errorType 2015-04-22 22:29:45 +02:00
validation-error.js Rename error.type to error.errorType 2015-04-22 22:29:45 +02:00