More detailed logging

Log the error code + full url/method on errors.