Replace HTTP status codes with constants