update requests methods: add error codes