private static boolean canResponseHaveBody ( int status ) { LOG . trace ( "enter HttpMethodBase.canResponseHaveBody(int)" ) ; boolean result = true ; if ( ( status >= 100 && status <= 199 ) || ( status == 204 ) || ( status == 304 ) ) { // NOT MODIFIED result = false ; } return result ; }
Per RFC 2616 section 4 . 3 some response can never contain a message body .