Blog

What the framework really does, where it stops, and how to use it in production. Plus behind the scenes of the platform.

API

2 articles

October 2026

  1. Symfony · API

    400 or 422? Designing validation errors for a Symfony API

    Symfony 8.2 turns a ValidationFailedException into a 422 response. A good opportunity to revisit what an API should return when a request is invalid: HTTP status codes, the Problem Details format, stable codes and logging.

    · 9 min read

  2. Symfony · API

    Versioning a Symfony API without duplicating your classes

    Symfony 8.2 gives each serialization group its own names and adds ignored_groups. A good opportunity to compare the ways of serving two versions of an API from the same objects, and to look at the pitfalls of the new approach.

    · 8 min read