Mercurial Hosting > luan
view 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 |
line wrap: on
line source
package luan.webserver; public class Status { public final int code; public final String reason; public Status(int code,String reason) { this.code = code; this.reason = reason; } public static final Status OK = new Status(200,"OK"); public static final Status NOT_FOUND = new Status(404,"Not Found"); public static final Status INTERNAL_SERVER_ERROR = new Status(500,"Internal Server Error"); }