I don't understand the need for a file mapping all of this; does the gateway not return a message as well as an error code?