adaltas / node-http-status

Utility to interact with HTTP status code in Node.js
Other
441 stars 55 forks source link

Convert Status Codes to Numbers & Fix Naming Conventions #1

Closed gasi closed 13 years ago

gasi commented 13 years ago

This is exactly the library I was looking for, thanks.

I've converted the HTTP status codes from strings to integers to align with the Node API: http://nodejs.org/docs/v0.4.6/api/http.html#response.statusCode

Also, I've fixed the naming conventions for the status constants from PascalCase to ALL_CAPS.

Let me know if you have any questions.

Cheers, Daniel

wdavidw commented 13 years ago

Thanks Daniel, i've pushed all your changes

gasi commented 13 years ago

Thanks, David :) Could you please also npm publish the updated package for other people to use?

wdavidw commented 13 years ago

i forgot, its ready now

gasi commented 13 years ago

Thank you, David.