public static HttpStatus fromStatusCode(final int statusCode)
	{
		if (statusCode < 100 || statusCode > 999)
		{
			throw new IllegalArgumentException("Illegal status code " + statusCode);
		}

		HttpStatus result = STATUS_CODES.get(statusCode);
		if (result == null)
		{
			return new HttpStatus(statusCode, "Unknown");
		}
		return result;
	}
public static HttpStatus fromStatusCode ( final int statusCode ) { if ( statusCode < 100 || statusCode > 999 ) { throw new IllegalArgumentException ( "Illegal status code " + statusCode ) ; } HttpStatus result = STATUS_CODES . get ( statusCode ) ; if ( result == null ) { return new HttpStatus ( statusCode , "Unknown" ) ; } return result ; }
Returns the {@link HttpStatus} having the given status code.

@param statusCode
An HTTP status code integer.
@return The {@link HttpStatus} having the given status code.