Including Error Messages in OpenLegacy API REST Responses
Including error messages in API REST response bodies provides valuable information to API consumers when an error occurs during an API call. This can help them understand what went wrong and how to potentially resolve the issue, aiding in debugging and integration.
How do I enable the inclusion of error messages in OpenLegacy LowCode/NoCode projects?
The property for including error messages in API REST response bodies has been updated to:
ol.flow.error.include-message: always
You can typically set this property in one of the following locations within your OpenLegacy LowCode/NoCode project, depending on your project's structure and deployment environment:
application.yml file: This is the most common place for application-specific configurations. Locate these files in your project's src/main/resources
directory and add the property.
Example in application.properties:
ol:
flow:
error:
include-message: always
Another option would be to use environment variables.
To set this property as an environment variable, set:
OL_FLOW_ERROR_INCLUDE_MESSAGE=always
Updated 4 days ago