Add support for error codes passed to the builder