Update HTTP status codes to use 500 instead of passing status code through