Add error handling option to all request functions

Just a simple change. Backwards compatible.