Better error handling for PUT requests

Reference to DaneEveritt/PufferPanel #277