MCPcopy Create free account
hub / github.com/BaseXdb/basex / reason

Method reason

basex-core/src/main/java/org/basex/io/IOUrl.java:188–191  ·  view source on GitHub ↗

Returns the reason phrase for a status code. @param status HTTP status code @return reason or empty string

(final int status)

Source from the content-addressed store, hash-verified

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.

Callers 2

responseMethod · 0.95
getResponseMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected