net.oneandone.sushi.fs.http.model.StatusCode Maven / Gradle / Ivy
/*
* Copyright 1&1 Internet AG, https://github.com/1and1/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.oneandone.sushi.fs.http.model;
/**
* RFC 1945 and 2518 status codes
* Note that this is not an enum because there are to many code to create them in advance
*/
public class StatusCode {
public static final int OK = 200;
public static final int CREATED = 201;
public static final int NO_CONTENT = 204;
public static final int RESET_CONTENT = 205;
public static final int MULTI_STATUS = 207;
public static final int MOVED_PERMANENTLY = 301;
public static final int MOVED_TEMPORARILY = 302;
public static final int NOT_MODIFIED = 304;
public static final int BAD_REQUEST = 400;
public static final int NOT_FOUND = 404;
public static final int METHOD_NOT_ALLOWED = 405;
public static final int GONE = 410;
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy