horrible crappy error-checking function
check for response code
- it probably only exists on POST