Ghost/ghost/mw-api-version-mismatch
Naz 1b6a24f0d8
🐛 Fixed incorrect API error response message
closes https://github.com/TryGhost/Ghost/issues/15424
refs b9ab1002b3
refs 9210ac7dc7

- When errors were throw from the model layer the HTTP API responses contained misleading information about the error - e.g.:

"message": "Unknown error - TypeError, cannot save post."

- This was due to the error handling code throwing it's own internal error resulting in compete loss of the original Ghost's error context.
2022-09-19 14:52:28 +08:00
..
lib Added query string trimming from the original URL 2022-05-11 10:40:09 +08:00
test Added query string trimming from the original URL 2022-05-11 10:40:09 +08:00
.eslintrc.js Bootstrapped api version mismatch middleware 2022-04-21 15:57:43 +08:00
index.js Bootstrapped api version mismatch middleware 2022-04-21 15:57:43 +08:00
package.json 🐛 Fixed incorrect API error response message 2022-09-19 14:52:28 +08:00
README.md Tidied up package README and LICENSE files 2022-07-26 15:22:10 +02:00

Mw Api Version Mismatch

Middleware handling mismatched Accept-Version header