Added Assert for status code