Switched to request (mikeal's).
Fix inverted status code checks.
Parse the right body.
rejected -> reject
Minor type fix in inline comment.