private function returnValidationErrorResponse($e)
    {
        return $this->response->error($e->getCode(), $e->getMessage(), ['error' => ['errors' => $e->getErrors()]]);
    }
private function returnValidationErrorResponse($e)
    {
        return $this->response->error($e->getCode(), $e->getMessage(), ['error' => ['errors' => $e->getErrors()]]);
    }
private function returnValidationErrorResponse ( $ e ) { return $ this -> response -> error ( $ e -> getCode ( ) , $ e -> getMessage ( ) , [ 'error' => [ 'errors' => $ e -> getErrors ( ) ] ] ) ; }
Returns a validation error response

@return array Response
Returns a validation error response