Ghost/core/server/errors
Hannah Wolfe 545bea0eaf Return a single 422 error for invalid values
refs #5808

- Fix the API to return a single 422 error when an invalid value is passed
- Only affects Browse, and not Read at present due to differences in how they are handled
- Frontend was changed to always 404 in #5851
- Adds tests to ensure all cases are covered
2015-09-25 10:30:49 +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 Return a single 422 error for invalid values 2015-09-25 10:30:49 +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
too-many-requests-error.js Fix signin errors 2015-08-10 12:26:45 +01: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