How to handle HTTP status codes in alamofire?

        var request = URLRequest(url: url)
        request.httpMethod = HTTPMethod.post.rawValue
        request.setValue("application/json; charset=UTF-8", forHTTPHeaderField: "Content-Type")
        request.httpBody = jsonData
        
        Alamofire.request(request).responseString {
            (response) in
            switch response.result
            {
            case.success(let result):
                print(result)
                if response.response?.statusCode == 200 {
                    
                }else{
                     
                }
                
            case.failure(let error):
                print("Error Code: \(error._code)")
                print("Error Messsage: \(error.localizedDescription)")
            }
        }