copied core for 503 error handle
copied core for 503 error handle