<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def form_invalid(self, form, context=None, **kwargs):
 """This will return the request with form errors as well as any additional context. """

        if not context:
            context = {}

        context['errors'] = form.errors
        return super(ApiFormView, self).render_to_response(context=context,
                                                           status=400)