createErrorResponse

fun createErrorResponse(responseCode: Int, throwable: Throwable, newURL: String): HttpResponsePackage