I've updated all the usage of HTTP status codes, and extracted constants for them. Also updated the error messages.