Throw an error if the action can't be found.
#todo: send correct headers