Maileon PHP client
1.5.0
Easily integrate your PHP application with Maileon.
Main Page
Related Pages
Classes
Files
File List
HTTPResponseCodes.php
1
<?php
2
9
abstract
class
com_maileon_api_HTTPResponseCodes
10
{
11
12
16
const
OK
= 200;
17
21
const
CREATED
= 201;
22
26
const
ACCEPTED
= 202;
27
31
const
NO_CONTENT
= 204;
32
36
const
MOVED_PERMANENTLY
= 301;
37
41
const
SEE_OTHER
= 303;
42
46
const
NOT_MODIFIED
= 304;
47
51
const
TEMPORARY_REDIRECT
= 307;
52
56
const
BAD_REQUEST
= 400;
57
61
const
UNAUTHORIZED
= 401;
62
66
const
FORBIDDEN
= 403;
67
71
const
NOT_FOUND
= 404;
72
76
const
NOT_ACCEPTABLE
= 406;
77
81
const
CONFLICT
= 409;
82
86
const
GONE
= 410;
87
91
const
PRECONDITION_FAILED
= 412;
92
96
const
UNSUPPORTED_MEDIA_TYPE
= 415;
97
101
const
INTERNAL_SERVER_ERROR
= 500;
102
106
const
SERVICE_UNAVAILABLE
= 503;
107
108
protected
static
$codes = array(
109
200 =>
"OK"
,
110
201 =>
"Created"
,
111
202 =>
"Accepted"
,
112
204 =>
"No Content"
,
113
301 =>
"Moved Permanently"
,
114
303 =>
"See Other"
,
115
304 =>
"Not Modified"
,
116
307 =>
"Temporary Redirect"
,
117
400 =>
"Bad Request"
,
118
401 =>
"Unauthorized"
,
119
403 =>
"Forbidden"
,
120
404 =>
"Not Found"
,
121
406 =>
"Not Acceptable"
,
122
409 =>
"Conflict"
,
123
410 =>
"Gone"
,
124
412 =>
"Precondition Failed"
,
125
415 =>
"Unsupported Media Type"
,
126
500 =>
"Internal Server Error"
,
127
503 =>
"Service Unavailable"
128
);
129
138
static
function
getStringFromHTTPStatusCode
($httpStatusCode)
139
{
140
if
(array_key_exists($httpStatusCode, com_maileon_api_HTTPResponseCodes::$codes) ===
true
) {
141
return
com_maileon_api_HTTPResponseCodes::$codes[$httpStatusCode];
142
}
else
return
"unknown error code: "
. $httpStatusCode;
143
}
144
145
146
}
com_maileon_api_HTTPResponseCodes\INTERNAL_SERVER_ERROR
const INTERNAL_SERVER_ERROR
Definition:
HTTPResponseCodes.php:101
com_maileon_api_HTTPResponseCodes\CREATED
const CREATED
Definition:
HTTPResponseCodes.php:21
com_maileon_api_HTTPResponseCodes\GONE
const GONE
Definition:
HTTPResponseCodes.php:86
com_maileon_api_HTTPResponseCodes
Definition:
HTTPResponseCodes.php:9
com_maileon_api_HTTPResponseCodes\NO_CONTENT
const NO_CONTENT
Definition:
HTTPResponseCodes.php:31
com_maileon_api_HTTPResponseCodes\UNAUTHORIZED
const UNAUTHORIZED
Definition:
HTTPResponseCodes.php:61
com_maileon_api_HTTPResponseCodes\NOT_ACCEPTABLE
const NOT_ACCEPTABLE
Definition:
HTTPResponseCodes.php:76
com_maileon_api_HTTPResponseCodes\OK
const OK
Definition:
HTTPResponseCodes.php:16
com_maileon_api_HTTPResponseCodes\SEE_OTHER
const SEE_OTHER
Definition:
HTTPResponseCodes.php:41
com_maileon_api_HTTPResponseCodes\UNSUPPORTED_MEDIA_TYPE
const UNSUPPORTED_MEDIA_TYPE
Definition:
HTTPResponseCodes.php:96
com_maileon_api_HTTPResponseCodes\ACCEPTED
const ACCEPTED
Definition:
HTTPResponseCodes.php:26
com_maileon_api_HTTPResponseCodes\NOT_MODIFIED
const NOT_MODIFIED
Definition:
HTTPResponseCodes.php:46
com_maileon_api_HTTPResponseCodes\MOVED_PERMANENTLY
const MOVED_PERMANENTLY
Definition:
HTTPResponseCodes.php:36
com_maileon_api_HTTPResponseCodes\NOT_FOUND
const NOT_FOUND
Definition:
HTTPResponseCodes.php:71
com_maileon_api_HTTPResponseCodes\FORBIDDEN
const FORBIDDEN
Definition:
HTTPResponseCodes.php:66
com_maileon_api_HTTPResponseCodes\BAD_REQUEST
const BAD_REQUEST
Definition:
HTTPResponseCodes.php:56
com_maileon_api_HTTPResponseCodes\CONFLICT
const CONFLICT
Definition:
HTTPResponseCodes.php:81
com_maileon_api_HTTPResponseCodes\getStringFromHTTPStatusCode
static getStringFromHTTPStatusCode($httpStatusCode)
Definition:
HTTPResponseCodes.php:138
com_maileon_api_HTTPResponseCodes\TEMPORARY_REDIRECT
const TEMPORARY_REDIRECT
Definition:
HTTPResponseCodes.php:51
com_maileon_api_HTTPResponseCodes\PRECONDITION_FAILED
const PRECONDITION_FAILED
Definition:
HTTPResponseCodes.php:91
com_maileon_api_HTTPResponseCodes\SERVICE_UNAVAILABLE
const SERVICE_UNAVAILABLE
Definition:
HTTPResponseCodes.php:106
client
com
maileon
api
HTTPResponseCodes.php
Generated on Tue Apr 2 2019 16:02:12 for Maileon PHP client by
1.8.9.1