toastdriven/itty — comment on commit 1283cb0248548e76734ecc8a6f0ae92ac745c6ac
File: itty.py line 430
By boorad:

for this commit (1283cb0), this line 430 is now causing problems with PUT. I forked and tried to patch, but it was not readily apparent to me how to get the 201 status into the Response object.

Further, the HTTP RFC states that if PUT performs a 'create' the server should return 201, but if the PUT performs an 'update' the server should return 200. I was able to solve this issue by removing the above line and placing the status into my own function's Response object. Seems crappy that the user has to take care of this, but given the spec, it is proper HTTP.

Hope this helps.