private ResponseType getResponseType ( int code ) throws IOException { try { return ResponseType . values ( ) [ code ] ; } catch ( Exception e ) { throw new IOException ( "Unrecognized response code: " + code ) ; } }
Returns the response type from the status value .