PATH:
home
/
sparklp6
/
public_html
/
website_356c8563
/
nitropack
/
nitropack-sdk
/
NitroPack
/
SDK
/
Api
<?php namespace NitroPack\SDK\Api; class ResponseStatus { const OK = 200; const ACCEPTED = 202; // There is no cache, but the request for creating cache has been accepted. const BAD_REQUEST = 400; const PAYMENT_REQUIRED = 402; const FORBIDDEN = 403; const NOT_FOUND = 404; const CONFLICT = 409; const RUNTIME_ERROR = 500; const SERVICE_UNAVAILABLE = 503; const UNKNOWN = -1; public static function getStatus($code) { if (isset(self::$codeToStatus[$code])) { return self::$codeToStatus[$code]; } else { return ResponseStatus::UNKNOWN; } } private static $codeToStatus = array( "200" => ResponseStatus::OK, "202" => ResponseStatus::ACCEPTED, "400" => ResponseStatus::BAD_REQUEST, "402" => ResponseStatus::PAYMENT_REQUIRED, "403" => ResponseStatus::FORBIDDEN, "404" => ResponseStatus::NOT_FOUND, "409" => ResponseStatus::CONFLICT, "500" => ResponseStatus::RUNTIME_ERROR, "503" => ResponseStatus::SERVICE_UNAVAILABLE ); }
[-] Webhook.php
[edit]
[-] SignedBase.php
[edit]
[-] ExcludedUrls.php
[edit]
[-] .htaccess
[edit]
[-] Excludes.php
[edit]
[-] AdditionalDomains.php
[edit]
[-] Varnish.php
[edit]
[-] Stats.php
[edit]
[-] Tagger.php
[edit]
[-] ResponseStatus.php
[edit]
[-] Integration.php
[edit]
[-] SafeMode.php
[edit]
[-] SecureRequestMaker.php
[edit]
[-] Warmup.php
[edit]
[-] Cache.php
[edit]
[-] RemoteConfigFetcher.php
[edit]
[-] Base.php
[edit]
[-] VariationCookie.php
[edit]
[-] Response.php
[edit]
[-] Url.php
[edit]
[+]
..
[-] RequestMaker.php
[edit]