Been working on this for a bit with no success. I have a function that goes to a UIButton solely to perform alamofire calls to my rails api which uses all JSON.
UIButton
The response returned by the server is not in the JSON format. You can use the tool to test the request first.
Print out of the error code is not a HTTP error code, because of the failure to resolve JSON