         modal.find('#contact-message').val('')
         modal.modal 'hide'
       , 1000
+    jqxhr.fail ->
+      return unless modal
+      if jqxhr.status is 500
+        modal.find('.sending-indicator').text $.i18n.t('loading_error.server_error')
+    return jqxhr
 
   send: (options={}) ->
     options.type = 'POST'

      data: {teacherEmail, sessionId, levelName, codeLanguage: _.string.titleize(codeLanguage).replace('script', 'Script')}
    })
    return new Promise(jqxhr.then)


      data: {parentEmail}
    })
    return new Promise(jqxhr.then)

  sendParentTeacherSignup: ({teacherEmail, parentEmail, parentName, customContent}) ->
    jqxhr = $.ajax('/contact/send-parent-refer-teacher', {
      method: 'POST'
