Angular HTTP Status

There is no revolution here, just a convenience stuff to deal with HTTP Status codes

Installation details on github

Interactive conversions

Code
means {{ Demo.toString(Demo.code) }}
Status text
is status {{ Demo.toStatus(Demo.text) }}
This angular module comes with 2 elements:
  • an angular constant (HttpCodes) with the list you can see right here
  • an angular factory (HttpStatus) with a convenience method toString()
Codes and status text are from http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml.

This list only contains HTTP status with an existing RFC (see comments within the code).

Complete list

{{ Demo.statusCodes | json }}