module Types:sig..end
Types defined by Restful.
type mode =
| |
Http |
(* | running as a standalone HTTP server | *) |
| |
Cgi |
(* | running as a tradtional CGI | *) |
The mode in which the application is running.
type error =
| |
User |
| |
Server |
| |
Unauth |
The type of error conditions.
exception User_exn of string
Exception raised by services encountering errors in CGI parameters or the like. This is a 400 error.
exception Server_exn of string
Exception raised by framework when an internal error occurs. This is a 500 error.
exception Unauth_exn of string
Exception raised by framework when authorization fails. This is a 4xx Forbidden error.