Fix status code check on committing.

This un-breaks searching.
Use endpoint name in chat validation.