implemented #81 in POST, GET, PUT, DELETE request handlers