reddit/reddit — Issue #262: BAD_CAPTCHA json error message should contain captcha_id
Author: bboe
Created: 2011-11-29 07:33:04+00:00
State: open

Quite simply, the json (though not jquery) result should contain the captcha_id when a captcha is required. By captcha_id I mean the part to complete a url like the followng: http://www.reddit.com/captcha/(captcha_id).png

The use case I encountered is when trying to submit a story via the api using api_type:json. I am nicely notified that my non-existent captcha is incorrect, however, I then have to make a request to http://www.reddit.com/api/new_captcha in order to get the captcha_id. This last round trip seems unnecessary.

By BAD_CAPTCHA error I mean [this one](https://github.com/reddit/reddit/blob/master/r2/r2/controllers/errors.py#L31).