Fixed wrong PUT status code when always_return_data=True

This should fix #655.