public static function retError($value, $http_code = HttpCodes::HTTP_BAD_REQUEST, $prettyPrint = false)
    {
        $response = self::buildResponse($value, false, $http_code);

        return self::retJSON($response, $prettyPrint);
    }
public static function retError($value, $http_code = HttpCodes::HTTP_BAD_REQUEST, $prettyPrint = false)
    {
        $response = self::buildResponse($value, false, $http_code);

        return self::retJSON($response, $prettyPrint);
    }
public static function retError ( $ value , $ http_code = HttpCodes :: HTTP_BAD_REQUEST , $ prettyPrint = false ) { $ response = self :: buildResponse ( $ value , false , $ http_code ) ; return self :: retJSON ( $ response , $ prettyPrint ) ; }
Return error.

@param mixed $value       The error response
@param int   $http_code   The HTTP response code
@param bool  $prettyPrint If true the JSON will be pretty printed

@return string JSON encoded $value.
Return error .