Added the static getDefaultErrorResponseEntity method to HttpResponse with unit tests.