Symfony RESTful API: Errors (Course 2)
Learn how to handle and return consistent errors in APIs with this comprehensive guide. From form validation to exception handling, we’ve got you covered.
What you’ll be learning
In course 1, we added our basic endpoints with some nice tests (yes!).
Now, we turn to a huge part of APIs: handling and returning consistent errors. Seriously, this is more important than you might think – which is why we’re covering this in episode 2.
So, let’s handle errors, and let’s do it gracefully:
Handling Form Validation errors and response
Disabling csrf_protection
Introducing the api-problem JSON format
Exception Listener!
Consistent errors everywhere: 404’s, 500’s, oh my!
Handling “extra fields” in your form
User Reviews
Be the first to review “Symfony RESTful API: Errors (Course 2)”
You must be logged in to post a review.
×


There are no reviews yet.