Added more time constraints for POST, PUT requests, Bad requests now return 404 error codes, Minor refactoring