Mercurial Hosting > luan
annotate src/luan/webserver/Status.java @ 1137:c123ee15f99b
add webserver
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 29 Jan 2018 18:49:59 -0700 |
parents | |
children | 4100304340bc |
rev | line source |
---|---|
1137 | 1 package luan.webserver; |
2 | |
3 | |
4 public class Status { | |
5 public final int code; | |
6 public final String reason; | |
7 | |
8 public Status(int code,String reason) { | |
9 this.code = code; | |
10 this.reason = reason; | |
11 } | |
12 | |
13 public static final Status OK = new Status(200,"OK"); | |
14 public static final Status NOT_FOUND = new Status(404,"Not Found"); | |
15 public static final Status INTERNAL_SERVER_ERROR = new Status(500,"Internal Server Error"); | |
16 } |