Logging level based on status code