KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > contineo > apis > rest > HttpStatusCodes


1 /* License: GNU General Public License (GPL) version 2 from June 1991; but not any newer version!
2  */

3 package org.contineo.apis.rest;
4
5 /**
6  * HTTP Status Codes; own class to not have to link to other much bigger packages
7  * @author Sebastian Stein
8  */

9 public class HttpStatusCodes {
10     public static final int OK = 200;
11     public static final int CREATED = 201;
12     public static final int BAD_REQUEST = 400;
13     public static final int FORBIDDEN = 403;
14     public static final int NOT_FOUND = 404;
15     public static final int METHOD_NOT_ALLOWED = 405;
16     public static final int INTERNAL_SERVER_ERROR = 500;
17 }
Popular Tags