Based on HTTP status , we can look up for the error string from a map and avoid 'if else ' ..plus its redundant at multiple place ..might as well have a function that return appr string based on http status code