spring-httpstatus-javascript
v1.1.0
Published
org.springframework.http.HttpStatus enum implementation for frontend.
Downloads
1
Maintainers
Readme
spring-httpstatus-javascript
org.springframework.http.HttpStatus enum implementation for frontend.
Installation
npm install spring-httpstatus-javascript --save
Usage
import HttpStatus from 'spring-httpstatus-javascript'
/* Comparison */
response.status == HttpStatus.OK
/* Get message of status*/
HttpStatus.getStatusText(HttpStatus.OK)