status code check for detail views