comparison http-response-status-codes.inc @ 13:9dab5b96b789

Clean spurious whitespace.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Wed, 19 Sep 2012 12:42:32 +0200
parents 18aafb1a8986
children f42dbf44b661
comparison
equal deleted inserted replaced
9:60e73809887a 13:9dab5b96b789
112 112
113 const HTTP_GATEWAY_TIMEOUT = 504; 113 const HTTP_GATEWAY_TIMEOUT = 504;
114 114
115 const HTTP_VERSION_NOT_SUPPORTED = 505; 115 const HTTP_VERSION_NOT_SUPPORTED = 505;
116 116
117 117
118 118
119 private static $messages = array( 119 private static $messages = array(
120 120
121 // [Informational 1xx] 121 // [Informational 1xx]
122 122
210 210
211 505=>'505 HTTP Version Not Supported' 211 505=>'505 HTTP Version Not Supported'
212 212
213 ); 213 );
214 214
215 215
216 216
217 public static function httpHeaderFor($code) { 217 public static function httpHeaderFor($code) {
218 218
219 return 'HTTP/1.1 ' . self::$messages[$code]; 219 return 'HTTP/1.1 ' . self::$messages[$code];
220 220
223 public static function getMessageForCode($code) { 223 public static function getMessageForCode($code) {
224 224
225 return self::$messages[$code]; 225 return self::$messages[$code];
226 226
227 } 227 }
228 228
229 229
230 public static function isError($code) { 230 public static function isError($code) {
231 231
232 return is_numeric($code) && $code >= self::HTTP_BAD_REQUEST; 232 return is_numeric($code) && $code >= self::HTTP_BAD_REQUEST;
233 233
234 } 234 }
235 235
236 236
237 public static function canHaveBody($code) { 237 public static function canHaveBody($code) {
238 238
239 return 239 return
240 240