Alamofire always give me error with status code 500 in response

I want to give a feedback about this, it seems to be a bug in the simulator for Xcode 7 Beta because I tested the application on a physical device and it worked fine. Also when you reset the simulator and rebooting then it start working again. This is the problem that we faced using betas`.


You can change range of acceptableStatusCodes in Alamofire/validation.swift file from 200..<300 to 200..<500

replace below line

let acceptableStatusCodes: Range<Int> = 200..<300

with this line

let acceptableStatusCodes: Range<Int> = 200..<500

Status code 500 means that there is a problem with the server, not with your code.

Status code in HTTP