Ensure the undefined value is a binary.
Add basic error handling for PUT requests.