You should use the badRequest
constructor provided by the Responses
trait to ensure that errors produced by endponits are consistently
handled by interpreters.
You should use the internalServerError
constructor provided by the
Responses trait to ensure that errors produced by endpoints
are consistently handled by interpreters.