Community moderators have prevented the ability to post new answers.
You can find the JavaDoc at https://developer.atlassian.com/static/javadoc/stash/latest/api/reference/com/atlassian/stash/hook/HookResponse.html
In a nutshell, HookResponse allows you to write messages back to the git client.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.