Reject promise if response is 404.