438439440441442443444
/** * Send a 403 Forbidden response * @param reason The reason */ protected static void forbidden(String reason) { throw new Forbidden(reason); }
445446447448449450451
/** * Send a 403 Forbidden response */ protected static void forbidden() { throw new Forbidden("Access denied"); }
439440441442443444445
446447448449450451452
452453454455456457458
459460461462463464465
30313233343536
public static void notFound(){ throw new NotFound("not found. Sorry"); } public static void forbidden(){ throw new Forbidden("Forbidden. Forbidden I tell ya!"); }