protected function resourcePatchErrorResponse($json) { $error = new Error('Unprocessable Entity', json_decode($json)); return $this->createResponse(new UnprocessableEntity([$error])); }