Returns the reason phrase for a status code. @param status HTTP status code @return reason or empty string
(final int status)
| 186 | * @return reason or empty string |
| 187 | */ |
| 188 | public static String reason(final int status) { |
| 189 | final String reason = REASONS.get(status); |
| 190 | return reason != null ? reason : ""; |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * Checks if the specified string is a valid URL. |
no test coverage detected