Pass status code to callback