Added error handling
Added mimetype parsing to PUT
Added content type acceptance validation to GET