ass="sr-only">(opens new window)</span></span></a> object in the error response. This object may include, for instance, <code>code</code> information to model enum-like error codes that can be handled by a front-end. In order to generate this information, one can use the <code>mapError</code> function on a <code>GraphQLInterpreter</code>. An example is provided below in which we map a custom domain error within an <code>ExecutionError</code> to a meaningful error code.</p> <div class="language-scala mdoc:si