NAME

WebService::Mattermost::Role::Returns - Standard returns for user-facing subroutines.

VERSION

version 0.30

DESCRIPTION

Common structures for return values.

METHODS

error_return()

Return an unsuccessful response with an error message.

return $self->error_return('Error here');

# \{
#     error   => 1,
#     message => 'Error here. No API query was made.',
# }

AUTHOR

Mike Jones <mike@netsplit.org.uk>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2023 by Mike Jones.

This is free software, licensed under:

The MIT (X11) License