@@ -4,10 +4,10 @@ public class HttpApiCommands
44{
55 private static readonly List < int > HttpCodes =
66 [
7- 100 , 101 , 102 , 200 , 201 , 202 , 203 , 204 , 206 , 207 , 300 , 301 , 302 , 303 , 304 , 305 , 307 , 308 , 400 , 401 , 402 ,
8- 403 , 404 , 405 , 406 , 407 , 408 , 409 , 410 , 411 , 412 , 413 , 414 , 415 , 416 , 417 , 418 , 420 , 421 , 422 , 423 , 424 ,
9- 425 , 426 , 429 , 431 , 444 , 450 , 451 , 497 , 498 , 499 , 500 , 501 , 502 , 503 , 504 , 506 , 507 , 508 , 509 , 510 , 511 ,
10- 521 , 522 , 523 , 525 , 599
7+ 100 , 101 , 102 , 103 , 200 , 201 , 202 , 203 , 204 , 205 , 206 , 207 , 208 , 214 , 226 , 300 , 301 , 302 , 303 , 304 , 305 ,
8+ 307 , 308 , 400 , 401 , 402 , 403 , 404 , 405 , 406 , 407 , 408 , 409 , 410 , 411 , 412 , 413 , 414 , 415 , 416 , 417 , 418 ,
9+ 419 , 420 , 421 , 422 , 423 , 424 , 425 , 426 , 428 , 429 , 431 , 444 , 450 , 451 , 495 , 496 , 497 , 498 , 499 , 500 , 501 ,
10+ 502 , 503 , 504 , 506 , 507 , 508 , 509 , 510 , 511 , 521 , 522 , 523 , 525 , 530 , 599
1111 ] ;
1212
1313 [ Command ( "httpcat" ) ]
@@ -57,7 +57,7 @@ private static string GetHttpImage(int? code, bool isCat)
5757 {
5858 if ( ! HttpCodes . Contains ( code . Value ) )
5959 return
60- $ "Either that's not a valid HTTP status code, or it's not supported by http. { tld } ! Try another one.";
60+ $ "Either that's not a valid HTTP status code, or it's not supported! Try another one.";
6161
6262 var httpResponse =
6363 Program . HttpClient . Send ( new HttpRequestMessage ( HttpMethod . Get , $ "https://http.{ tld } /{ code } .jpg") ) ;
0 commit comments