4 ms·
If the HTTP status code is 5xx, keep the password. If the HTTP status code is 4xx, delete the password. Obviously making some assumptions (like HTTP, or a 5xx
by kiallmacinnes 11y ago
If the HTTP status code is 5xx, keep the password. If the HTTP status code is 4xx, delete the password.
Obviously making some assumptions (like HTTP, or a 5xx on network fail between internal services), but telling the difference between "user supplied bad data" and "the server messed up" really isn't that awkward at all.
- chime 11y agoThat's exactly what we do in one of our iPad apps.