serializer->serialize($error, 'json'), $statusCode, $headers ); } }