package be.ephec.nsjc.jws.model;

public enum ResponseCode {
	CONTINUE(100, "Continue"),
	SWITCH_PROTOCOLS(101, "Switching Protocol"),
	
	OK(200, "OK"),
	CREATED(201, "Created"),
	ACCEPTED(202, "Accepted"),
	NO_AUTH_INFO(203, "Non-Authoritative Information"),
	NO_CONTENT(204, "No content"),
	RESET_CONTENT(205, "Reset content"),
	PARTIAL_CONTENT(206, "Partial content"),
	
	MULTIPLE_CHOISES(300, "Multiples choises"),
	MOVED(301, "Moved permanently"),
	FOUND(302, "Found"),
	SEE_OTHER(303, "See Other"),
	NOT_MODIFIED(304, "Not Modified"),
	USE_PROXY(305, "Use proxy"),
	TEMP_REDIR(307, "Temporary Redirect"),
	PERM_REDIR(308, "Permanent Redirect"),
	TOO_MANY_REDIR(310, "Too many Redirects"),
	
	BAD_REQUEST(400, "Bad request"),
	UNAUTHORIZED(401, "Unauthorized"),
	PAYMENT_REQUIRED(402, "Payment Required"),
	FORBIDDEN(403, "Forbidden"),
	NOT_FOUND(404, "Not Found"),
	METH_NOT_ALLOWED(405, "Method Not Allowed"),
	NOT_ACCEPTABLE(406, "Not Acceptable"),
	PROXY_AUTH_REQ(407, "Proxy Authentication Required"),
	REQ_TIMEOUT(408, "Request Time-out"),
	CONFLICT(409, "Conflict"),
	GONE(410, "Gone"),
	LENGTH_REQ(411, "Length Required"),
	PREREQ_FAILED(412, "Precondition Failed"),
	REQ_ENT_TOO_LARGE(413, "Request Entity Too Large"),
	TOO_LONG(414, "Request-URI Too Long"),
	MEDIA_TYPE(415, "Unsupported Media Type"),
	REQ_RANGE_UNSATIS(416, "Requested range unsatisfiable"),
	EXP_FAILED(417, "Expectation failed"),
	TEAPOT(418, "I’m a teapot"),
	BAD_MAP(421, "Bad mapping / Misdirected Request"),
	
	INTERNAL_ERROR(500, "Internal Server Error"),
	NOT_IMPL(501, "Not Implemented"),
	BAD_GATEWAY(502, "Bad Gateway"),
	SERV_UNVAILABLE(503, "Service Unavailable"),
	GATEWAY_TIMEOUT(504, "Gateway Time-out"),
	BAD_HTTP_VERSION(505, "HTTP Version not supported"),
	QUOTA_EXCEEDED(509, "Bandwidth Limit Exceeded"),
	UNKNOWN_ERROR(520, "");
	
	private int code;
	private String descr;
	
	ResponseCode(int code, String descr){
		this.code = code;
		this.descr = descr;
	}

	public int getCode() {
		return code;
	}
	
	public String getDescr() {
		return descr;
	}
	
}

@@ -151,1683 +151,153 @@
 ),%0A%09
-CREATED(201, %22Created%22),%0A%09ACCEPTED(202, %22Accepted%22),%0A%09NO_AUTH_INFO(203, %22Non-Authoritative Information%22),%0A%09NO_CONTENT(204, %22No content%22),%0A%09RESET_CONTENT(205, %22Reset content%22),%0A%09PARTIAL_CONTENT(206, %22Partial content%22),%0A%09%0A%09MULTIPLE_CHOISES(300, %22Multiples choises%22),%0A%09MOVED(301, %22Moved permanently%22),%0A%09FOUND(302, %22Found%22),%0A%09SEE_OTHER(303, %22See Other%22),%0A%09NOT_MODIFIED(304, %22Not Modified%22),%0A%09USE_PROXY(305, %22Use proxy%22),%0A%09TEMP_REDIR(307, %22Temporary Redirect%22),%0A%09PERM_REDIR(308, %22Permanent Redirect%22),%0A%09TOO_MANY_REDIR(310, %22Too many Redirects%22),%0A%09%0A%09BAD_REQUEST(400, %22Bad request%22),%0A%09UNAUTHORIZED(401, %22Unauthorized%22),%0A%09PAYMENT_REQUIRED(402, %22Payment Required%22),%0A%09FORBIDDEN(403, %22Forbidden%22),%0A%09NOT_FOUND(404, %22Not Found%22),%0A%09METH_NOT_ALLOWED(405, %22Method Not Allowed%22),%0A%09NOT_ACCEPTABLE(406, %22Not Acceptable%22),%0A%09PROXY_AUTH_REQ(407, %22Proxy Authentication Required%22),%0A%09REQ_TIMEOUT(408, %22Request Time-out%22),%0A%09CONFLICT(409, %22Conflict%22),%0A%09GONE(410, %22Gone%22),%0A%09LENGTH_REQ(411, %22Length Required%22),%0A%09PREREQ_FAILED(412, %22Precondition Failed%22),%0A%09REQ_ENT_TOO_LARGE(413, %22Request Entity Too Large%22),%0A%09TOO_LONG(414, %22Request-URI Too Long%22),%0A%09MEDIA_TYPE(415, %22Unsupported Media Type%22),%0A%09REQ_RANGE_UNSATIS(416, %22Requested range unsatisfiable%22),%0A%09EXP_FAILED(417, %22Expectation failed%22),%0A%09TEAPOT(418, %22I%E2%80%99m a teapot%22),%0A%09BAD_MAP(421, %22Bad mapping / Misdirected Request%22),%0A%09%0A%09INTERNAL_ERROR(500, %22Internal Server Error%22),%0A%09NOT_IMPL(501, %22Not Implemented%22),%0A%09BAD_GATEWAY(502, %22Bad Gateway%22),%0A%09SERV_UNVAILABLE(503, %22Service Unavailable%22),%0A%09GATEWAY_TIMEOUT(504, %22Gateway Time-out%22),%0A%09BAD_HTTP_VERSION(505, %22HTTP Version not supported%22),%0A%09QUOTA_EXCEEDED(509, %22Bandwidth Limit Exceeded%22),%0A%09UNKNOWN_ERROR(520, %22
+%0A%09BAD_REQUEST(400, %22Bad request%22),%0A%09NOT_FOUND(404, %22Not Found%22),%0A%09%0A%09INTERNAL_ERROR(500, %22Internal Server Error%22),%0A%09NOT_IMPL(501, %22Not Implemented
 %22);%0A

delete unused responde code