Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit e969020

Browse files
committed
Add RFC references for all status.
Asked by @jubianchi.
1 parent ae0588c commit e969020

1 file changed

Lines changed: 46 additions & 46 deletions

File tree

Response/Response.php

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -85,70 +85,70 @@ class Response
8585
\Hoa\Stream\IStream\Bufferable {
8686

8787
/**
88-
* Continue.
88+
* Continue (please, see RFC7231).
8989
*
9090
* @const string
9191
*/
9292
const STATUS_CONTINUE = '100 Continue';
9393

9494
/**
95-
* Switching protocols.
95+
* Switching protocols (please, see RFC7231).
9696
*
9797
* @const string
9898
*/
9999
const STATUS_SWITCHING_PROTOCOLS = '101 Switching Protocols';
100100

101101
/**
102-
* Processing.
102+
* Processing (please, see RFC2518).
103103
*
104104
* @const string
105105
*/
106106
const STATUS_PROCESSING = '102 Processing';
107107

108108
/**
109-
* OK.
109+
* OK (please, see RFC7231).
110110
*
111111
* @const string
112112
*/
113113
const STATUS_OK = '200 Ok';
114114

115115
/**
116-
* Created.
116+
* Created (please, see RFC7231).
117117
*
118118
* @const string
119119
*/
120120
const STATUS_CREATED = '201 Created';
121121

122122
/**
123-
* Accepted.
123+
* Accepted (please, see RFC7231).
124124
*
125125
* @const string
126126
*/
127127
const STATUS_ACCEPTED = '202 Accepted';
128128

129129
/**
130-
* Non-authoritative information.
130+
* Non-authoritative information (please, see RFC7231).
131131
*
132132
* @const string
133133
*/
134134
const STATUS_NON_AUTHORITATIVE_INFORMATION = '203 Non Authoritative Information';
135135

136136
/**
137-
* No content.
137+
* No content (please, see RFC7231).
138138
*
139139
* @const string
140140
*/
141141
const STATUS_NO_CONTENT = '204 No Content';
142142

143143
/**
144-
* Reset content.
144+
* Reset content (please, see RFC7231).
145145
*
146146
* @const string
147147
*/
148148
const STATUS_RESET_CONTENT = '205 Reset Content';
149149

150150
/**
151-
* Partial content.
151+
* Partial content (please, see RFC7233).
152152
*
153153
* @const string
154154
*/
@@ -176,182 +176,182 @@ class Response
176176
const STATUS_IM_USED = '226 IM Used';
177177

178178
/**
179-
* Multiple choices.
179+
* Multiple choices (please, see RFC7231).
180180
*
181181
* @const string
182182
*/
183183
const STATUS_MULTIPLE_CHOICES = '300 Multiple Choices';
184184

185185
/**
186-
* Moved permanently.
186+
* Moved permanently (please, see RFC7231).
187187
*
188188
* @const string
189189
*/
190190
const STATUS_MOVED_PERMANENTLY = '301 Moved Permanently';
191191

192192
/**
193-
* Found.
193+
* Found (please, see RFC7231).
194194
*
195195
* @const string
196196
*/
197197
const STATUS_FOUND = '302 Found';
198198

199199
/**
200-
* See other.
200+
* See other (please, see RFC7231).
201201
*
202202
* @const string
203203
*/
204204
const STATUS_SEE_OTHER = '303 See Other';
205205

206206
/**
207-
* Not modified.
207+
* Not modified (please, see RFC7232).
208208
*
209209
* @const string
210210
*/
211211
const STATUS_NOT_MODIFIED = '304 Not Modified';
212212

213213
/**
214-
* Use proxy.
214+
* Use proxy (please, see RFC7231).
215215
*
216216
* @const string
217217
*/
218218
const STATUS_USE_PROXY = '305 Use Proxy';
219219

220220
/**
221-
* Temporary redirect.
221+
* Temporary redirect (please, see RFC7231).
222222
*
223223
* @const string
224224
*/
225225
const STATUS_TEMPORARY_REDIRECT = '307 Temporary Redirect';
226226

227227
/**
228-
* Resume incomplete.
228+
* Resume incomplete (please, see RFC7237).
229229
*
230230
* @const string
231231
*/
232232
const STATUS_RESUME_INCOMPLETE = '308 Permanent Redirect';
233233

234234
/**
235-
* Bad request.
235+
* Bad request (please, see RFC7231).
236236
*
237237
* @const string
238238
*/
239239
const STATUS_BAD_REQUEST = '400 Bad Request';
240240

241241
/**
242-
* Unauthorized.
242+
* Unauthorized (please, see RFC7235).
243243
*
244244
* @const string
245245
*/
246246
const STATUS_UNAUTHORIZED = '401 Unauthorized';
247247

248248
/**
249-
* Payment required.
249+
* Payment required (please, see RFC7231).
250250
*
251251
* @const string
252252
*/
253253
const STATUS_PAYMENT_REQUIRED = '402 Payment Required';
254254

255255
/**
256-
* Forbidden.
256+
* Forbidden (please, see RFC7231).
257257
*
258258
* @const string
259259
*/
260260
const STATUS_FORBIDDEN = '403 Forbidden';
261261

262262
/**
263-
* Not found.
263+
* Not found (please, see RFC7231).
264264
*
265265
* @const string
266266
*/
267267
const STATUS_NOT_FOUND = '404 Not Found';
268268

269269
/**
270-
* Method not allowed.
270+
* Method not allowed (please, see RFC7231).
271271
*
272272
* @const string
273273
*/
274274
const STATUS_METHOD_NOT_ALLOWED = '405 Method Not Allowed';
275275

276276
/**
277-
* Not acceptable.
277+
* Not acceptable (please, see RFC7231).
278278
*
279279
* @const string
280280
*/
281281
const STATUS_NOT_ACCEPTABLE = '406 Not Acceptable';
282282

283283
/**
284-
* Proxy authentification required.
284+
* Proxy authentification required (please, see RFC7235).
285285
*
286286
* @const string
287287
*/
288288
const STATUS_PROXY_AUTHENTIFICATION_REQUIRED = '407 Proxy Authentification Required';
289289

290290
/**
291-
* Request time-out.
291+
* Request time-out (please, see RFC7231).
292292
*
293293
* @const string
294294
*/
295295
const STATUS_REQUEST_TIME_OUT = '408 Request Timeout';
296296

297297
/**
298-
* Conflict.
298+
* Conflict (please, see RFC7231).
299299
*
300300
* @const string
301301
*/
302302
const STATUS_CONFLICT = '409 Conflict';
303303

304304
/**
305-
* Gone.
305+
* Gone (please, see RFC7231).
306306
*
307307
* @const string
308308
*/
309309
const STATUS_GONE = '410 Gone';
310310

311311
/**
312-
* Length required.
312+
* Length required (please, see RFC7231).
313313
*
314314
* @const string
315315
*/
316316
const STATUS_LENGTH_REQUIRED = '411 Length Required';
317317

318318
/**
319-
* Precondition failed.
319+
* Precondition failed (please, see RFC7232).
320320
*
321321
* @const string
322322
*/
323323
const STATUS_PRECONDITION_FAILED = '412 Precondition Failed';
324324

325325
/**
326-
* Request entity too large.
326+
* Request entity too large (please, see RFC7231).
327327
*
328328
* @const string
329329
*/
330330
const STATUS_REQUEST_ENTITY_TOO_LARGE = '413 Request Entity Too Large';
331331

332332
/**
333-
* Request URI too large.
333+
* Request URI too large (please, see RFC7231).
334334
*
335335
* @const string
336336
*/
337337
const STATUS_REQUEST_URI_TOO_LARGE = '414 Request URI Too Large';
338338

339339
/**
340-
* Unsupported media type.
340+
* Unsupported media type (please, see RFC7231).
341341
*
342342
* @const string
343343
*/
344344
const STATUS_UNSUPPORTED_MEDIA_TYPE = '415 Unsupported Media Type';
345345

346346
/**
347-
* Requested range not satisfiable.
347+
* Requested range not satisfiable (please, see RFC7233).
348348
*
349349
* @const string
350350
*/
351351
const STATUS_REQUESTED_RANGE_NOT_SATISFIABLE = '416 Requested Range Not Satisfiable';
352352

353353
/**
354-
* Expectation failed.
354+
* Expectation failed (please, see RFC7231).
355355
*
356356
* @const string
357357
*/
@@ -386,7 +386,7 @@ class Response
386386
const STATUS_FAILED_DEPENDENCY = '424 Failed Dependency';
387387

388388
/**
389-
* Upgrade required (please, see RFC2817).
389+
* Upgrade required (please, see RFC7231).
390390
*
391391
* @const string
392392
*/
@@ -414,49 +414,49 @@ class Response
414414
const STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE = '431 Request Header Fields Too Large';
415415

416416
/**
417-
* Internal server error.
417+
* Internal server error (please, see RFC7231).
418418
*
419419
* @const string
420420
*/
421421
const STATUS_INTERNAL_SERVER_ERROR = '500 Internal Server Error';
422422

423423
/**
424-
* Not implemented.
424+
* Not implemented (please, see RFC7231).
425425
*
426426
* @const string
427427
*/
428428
const STATUS_NOT_IMPLEMENTED = '501 Not Implemented';
429429

430430
/**
431-
* Bad gateway.
431+
* Bad gateway (please, see RFC7231).
432432
*
433433
* @const string
434434
*/
435435
const STATUS_BAD_GATEWAY = '502 Bad Gateway';
436436

437437
/**
438-
* Service unavailable.
438+
* Service unavailable (please, see RFC7231).
439439
*
440440
* @const string
441441
*/
442442
const STATUS_SERVICE_UNAVAILABLE = '503 Service Unavailable';
443443

444444
/**
445-
* Gateway time-out.
445+
* Gateway time-out (please, see RFC7231).
446446
*
447447
* @const string
448448
*/
449449
const STATUS_GATEWAY_TIME_OUT = '504 Gateway Time Out';
450450

451451
/**
452-
* HTTP version not supported.
452+
* HTTP version not supported (please, see RFC7231).
453453
*
454454
* @const string
455455
*/
456456
const STATUS_HTTP_VERSION_NOT_SUPPORTED = '505 HTTP Version Not Supported';
457457

458458
/**
459-
* Variant Also Negotiates.
459+
* Variant Also Negotiates (please, see RFC2295).
460460
*
461461
* @const string
462462
*/
@@ -477,14 +477,14 @@ class Response
477477
const STATUS_LOOP_DETECTED = '508 Loop Detected';
478478

479479
/**
480-
* Not Extended.
480+
* Not Extended (please, see RFC2774).
481481
*
482482
* @const string
483483
*/
484484
const STATUS_NOT_EXTENDED = '510 Not Extended';
485485

486486
/**
487-
* Network Authentification Required.
487+
* Network Authentification Required (please, see RFC6585).
488488
*
489489
* @const string
490490
*/

0 commit comments

Comments
 (0)