HTTP-related exceptions.
When used in conjunction with the org.euandreh.http.interceptors/catch
interceptor, these exceptions can be used to stop the control flow of the handling code and return a proper error message and status code to the client.
(exception/forbidden! {...})
throws an ExceptionInfo with metadata attached to it that org.euandreh.http.interceptors/catch
knows how to find, and return a 403 status code with the Forbidden
message.
HTTP-related exceptions. When used in conjunction with the `org.euandreh.http.interceptors/catch` interceptor, these exceptions can be used to stop the control flow of the handling code and return a proper error message and status code to the client. `(exception/forbidden! {...})` throws an ExceptionInfo with metadata attached to it that `org.euandreh.http.interceptors/catch` knows how to find, and return a 403 status code with the `Forbidden` message.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close