Fixing 201 response handling for XHRs

Fixing 201 handling within `request()`

Building