Adding documentation for error codes in the context