Companion object providing utility functions for DocumentErrorStates.
Returns the error state corresponding to the given HTTP status code.