So far we’ve looked at working with APIs that return success responses. In this chapter, we will look at how Ember Data handles errors out of the box and the different adapter and serializer methods we can override to handle custom error responses. Let’s dive in!
© The Author(s), under exclusive license to APress Media, LLC , part of Springer Nature 2021
D. TangPro Ember Datahttps://doi.org/10.1007/978-1-4842-6561-1_99. Handling Custom Error Responses
David Tang1
(1)
Playa Vista, CA, USA
Responses with an HTTP status code of 422 (Unprocessable Entity) are considered invalid errors, or in other words, validation errors. Validation error responses follow the JSON:API specification regardless of which serializer is used. A JSON:API ...
Get Pro Ember Data: Getting Ember Data to Work with Your API now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.