Allow custom error messages to be passed to authorize call