micro-server
micro-server copied to clipboard
Define useful toString() on FormattedErrorCode
ErrorCode.format() produces a FormattedErrorCode object which is not printable, where users would expect it to be. To print it, they need to do a ErrorCode.format(...).getCode().toString() which is counter-intuitive.