
com.github.tomakehurst.wiremock.http.HttpStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wiremock-standalone Show documentation
Show all versions of wiremock-standalone Show documentation
A web service test double for all occasions
package com.github.tomakehurst.wiremock.http;
public class HttpStatus {
public static boolean isSuccess(int code) {
return ((200 <= code) && (code <= 299));
}
public static boolean isRedirection(int code) {
return ((300 <= code) && (code <= 399));
}
public static boolean isClientError(int code) {
return ((400 <= code) && (code <= 499));
}
public static boolean isServerError(int code) {
return ((500 <= code) && (code <= 599));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy