理系学生日記

おまえはいつまで学生気分なのか

OC4J で HTTP ステータスとして 600 番以降を返そうとすると

ArrayIndexOutOfBoundsException が出てわらえたけど、HTTP の RFC を良く読むと

The first digit of the Status-Code defines the class of response. The last two digits do not have any categorization role. There are 5 values for the first digit:

 o  1xx: Informational - Request received, continuing process

 o  2xx: Success - The action was successfully received, understood,
    and accepted

 o  3xx: Redirection - Further action must be taken in order to
    complete the request

 o  4xx: Client Error - The request contains bad syntax or cannot be
    fulfilled

 o  5xx: Server Error - The server failed to fulfill an apparently
    valid request

<< ということで、ぼくたちがわるかったということになりました。