src/APIResponse.php
public function respondValidationError($message = "Validation Error", $data = null)
    {
        return $this->setStatusCode(ResponseHTTP::HTTP_UNPROCESSABLE_ENTITY)
            ->respondWithError($message, null, $data);
    }
public function respondValidationError($message = "Validation Error", $data = null)
    {
        return $this->setStatusCode(ResponseHTTP::HTTP_UNPROCESSABLE_ENTITY)
            ->respondWithError($message, null, $data);
    }
public function respondValidationError ( $ message = "Validation Error" , $ data = null ) { return $ this -> setStatusCode ( ResponseHTTP :: HTTP_UNPROCESSABLE_ENTITY ) -> respondWithError ( $ message , null , $ data ) ; }
Use this when response validation error

@param string $message
@param null   $data

@return mixed
Use this when response validation error