Provide more context in the error messages

Now the error messages are prefixed with the method (GET, DETELE, PUT,
or POST) and the resource that was being operated on.