DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28626>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28626 ArrayIndexOutOfBoundsException in HttpStatus.getStatusText(508) Summary: ArrayIndexOutOfBoundsException in HttpStatus.getStatusText(508) Product: Commons Version: 2.0 Final Platform: All OS/Version: All Status: NEW Severity: Minor Priority: Other Component: HttpClient AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Try the following: System.out.println("Status text = " + HttpStatus.getStatusText(507)); try { System.out.println("Status text = " + HttpStatus.getStatusText(508)); } catch (Exception ex) { System.err.println("Exception! msg = " + ex.getMessage()); ex.printStackTrace(); } System.out.println("Status text = " + HttpStatus.getStatusText(509)); 507 -> returns a message as expected 508 -> ArrayIndexOutOfBoundsException 509 -> null as expected --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]