Changed some HTTP status codes to be more appropriate