'Get failed entry by ID'

@etag
@api.doc(params={u'failed_entry_id': u'ID    of    the    failed    entry'})
@api.response(200, model=retry_failed_entry_schema)
def get(self, failed_entry_id, session=None):

    try:
        failed_entry = session.query(FailedEntry).filter((FailedEntry.id == failed_entry_id)).one()
    except NoResultFound:
        raise NotFoundError((u'could    not    find    entry    with    ID    %i' % failed_entry_id))
    return jsonify(failed_entry.to_dict())
