modify acceptable response codes for ajax request