MCPcopy Create free account
hub / github.com/defineYIDA/LWebServer / HTTPStatus

Enum HTTPStatus

src/main/java/cn/lws/server/enumeration/HTTPStatus.java:6–15  ·  view source on GitHub ↗

Created by zl on 2019/03/01.

Source from the content-addressed store, hash-verified

4 * Created by zl on 2019/03/01.
5 */
6public enum HTTPStatus {
7 OK(200),NOT_FOUND(404),INTERNAL_SERVER_ERROR(500),BAD_REQUEST(400),MOVED_TEMPORARILY(302);
8 private int code;
9 HTTPStatus(int code){
10 this.code = code;
11 }
12 public int getCode(){
13 return code;
14 }
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected