Allow 2XX and 3XX responses from the API, and allow empty responses as well.

Look okay? I tested this and it fixes my problem.