errors
Adds error statuses that the route's handler can answer, such as 404, to the OpenAPI document. The document already lists the statuses that the server can answer for any route, 400 for a route with a body or a query parameter that the router can refuse, and 404 for a path parameter that does not take every segment.