custom error for 404 and 406 http response