Implemented propper HTTP response codes