https://confluence.atlassian.com/display/BITBUCKET/pullrequests+Resource#pullrequestsResource-Acceptandmergeapullrequest

state indicates MERGED, but not if it was already merged or something.

What should the API return in the case of closing an issue? Returning true in case of success and throw an exception in case of error (for a more verbose reason) seems little redundant.