Liking cljdoc? Tell your friends :D


This library provides constants and funcitons for defining and classifying HTTP status codes, which are used to encode the overall outcome of an HTTP response message. Codes correspond to those defined in RFC 2616 and RFC 2518.

It is a port of Perl's HTTP::Status.


Install from Clojars:

[clj-http-status "0.1.0"]

To use in your programs:

;; Import the constants into your namespace
(require '[clj-http-status.constants :refer :all])

;;=> 200

;;=> 404

;; Import functions for testing the status type
(require '[clj-http-status.core :as status])

(status/success? 200)
;;=> true

(status/error? 200)
;;=> false

(status/client-error? 404)
;;=> true


Copyright © 2014 Ray Miller

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close