Simplify logic of CaptureAction
Add missing response code details
Merge pull request #12 from stloyd/patch-1

[0.6] Simplify logic of CaptureAction