comparison src/goodjava/webserver/Status.java @ 1608:f7e3adae4907

add BasicAuthHandler
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 01 May 2021 19:52:56 -0600
parents 8a7519dee55c
children
comparison
equal deleted inserted replaced
1607:fa066aaa068c 1608:f7e3adae4907
37 public static final Status OK = newStatus(200,"OK"); 37 public static final Status OK = newStatus(200,"OK");
38 public static final Status MOVED_PERMANENTLY = newStatus(301,"Moved Permanently"); 38 public static final Status MOVED_PERMANENTLY = newStatus(301,"Moved Permanently");
39 public static final Status FOUND = newStatus(302,"Found"); 39 public static final Status FOUND = newStatus(302,"Found");
40 public static final Status NOT_MODIFIED = newStatus(304,"Not Modified"); 40 public static final Status NOT_MODIFIED = newStatus(304,"Not Modified");
41 public static final Status BAD_REQUEST = newStatus(400,"Bad Request"); 41 public static final Status BAD_REQUEST = newStatus(400,"Bad Request");
42 public static final Status UNAUTHORIZED = newStatus(401,"Unauthorized");
42 public static final Status NOT_FOUND = newStatus(404,"Not Found"); 43 public static final Status NOT_FOUND = newStatus(404,"Not Found");
43 public static final Status INTERNAL_SERVER_ERROR = newStatus(500,"Internal Server Error"); 44 public static final Status INTERNAL_SERVER_ERROR = newStatus(500,"Internal Server Error");
44 } 45 }