Fixing XHR 201 handling